package com.gsoe.problem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.gsoe.problem.mapper.ProblemKnowledgeMapper;
import com.gsoe.problem.po.ProblemKnowledge;
import com.gsoe.problem.service.ProblemKnowledgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 题目知识点中间表 服务实现类
 * </p>
 *
 * @author xiaoma
 * @since 2024-10-27
 */
@Service
public class ProblemKnowledgeServiceImpl extends ServiceImpl<ProblemKnowledgeMapper, ProblemKnowledge> implements ProblemKnowledgeService {
    @Autowired
    private ProblemKnowledgeMapper problemKnowledgeMapper;

    @Override
    public List<String> getKnowledgeListByProblemId(Long id) {
        return problemKnowledgeMapper.getKnowledgeListByProblemId(id);
    }
}
